find the closest pair